﻿namespace EyeOpen.TimeAssistant.Data.Nhibernate.Mapping
{
    using EyeOpen.Data.Nibernate.Mapping;
    using EyeOpen.TimeAssistant.Domain;

    public class TaskMap : OwnedHistoryMap<Task>
    {
        protected TaskMap()
        {
            Map(x => x.Hours);

            Map(x => x.Remain)
                .Not.Nullable();

            References(x => x.Meta)
                .ColumnName("MetaId")
                .Not.Nullable();
        }
    }
}